<?php
/**
 * @Notes:【】
 * @Date: 2022-06-09 22:17
 */

namespace App\Task;

use App\Library\Ocean\OceanRubbishCreate;
use App\Service\Task\TaskReceiveService;
use App\Service\Task\TaskService;
use Hyperf\Config\Annotation\Value;
use Hyperf\Crontab\Annotation\Crontab;
use Hyperf\Di\Annotation\Inject;

#[Crontab(name: "OceanRubbishSend", rule: "* * * * * *", callback: "execute", memo: "这是一个示例的定时任务")]
class OceanRubbishSend
{
    /**
     * @Inject()
     * @var OceanRubbishCreate
     */
    protected $oceanRubbishCreate;

    public function execute()
    {

        $this->oceanRubbishCreate->run();
    }
}